package com.example.model;

/**
 * @author long
 * @date 2023/11/17 17:05
 */
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AreaModel {

    @NotBlank(message = "id不能为空")
    private String id;

    private Integer areaCode;

    private String areaName;

    private Integer level;

    @Valid
    @NotNull(message = "明细不能为空")
    private List<AreaDetail> areaDetail;

}

